package cn.tinlan.shopcoin.Utils;

import android.widget.Toast;

import cn.tinlan.shopcoin.ShopCoinApplication;

/**
 * Created by Mortimer on 2018/11/20. 18:55
 * 佛祖🙏，永无bug。
 */
public class ToastUtils {
    private static Toast mToast;

    private ToastUtils(){
    }

    public static void show(String str){
        if(mToast == null){
            mToast = Toast.makeText(ShopCoinApplication.getAppContext(), str, Toast.LENGTH_SHORT);
        }else {
            mToast.setText(str);
        }
        mToast.show();
    }
}
